# 设置基础镜像
FROM index.tenxcloud.com/yeaheo/jre-alpine:2.0

# 设置镜像作者
MAINTAINER stephen.shen

#ENV APP_NAME @project.build.finalName@.@project.packaging@
#ENV APP_VERSION @project.version@

RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo "Asia/Shanghai" > /etc/timezone

# 设置容器的挂载卷
VOLUME /tmp
ARG JAR_FILE
ADD ${JAR_FILE} /app/app.jar

# 设置镜像暴露的端口
EXPOSE 8080

# 设置容器的入口程序
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-Xms256M", "-Xmx256M", "-jar","./app.jar"]
